import request from "@/utils/request";

export function add(data) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/ef/su/cmh/"+data.elderlyCode,
    method: 'post',
    data

  });

}
export function search(params) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/query/currentmedical/"+params.elderlyCode,
    method: 'get',
    params

  });

}

export function del(params) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/ef/su/cmh/"+params.elderlyCode+'/'+params.diseases,
    method: 'DELETE',
    params

  });

}
